package com.ruoyi.slope.ai.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.slope.ai.mapper.SlopeAiCrackMonitoringMapper;
import com.ruoyi.slope.ai.domain.SlopeAiCrackMonitoring;
import com.ruoyi.slope.ai.service.ISlopeAiCrackMonitoringService;

/**
 * 边坡裂缝目标识别监测Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-09-05
 */
@Service
public class SlopeAiCrackMonitoringServiceImpl implements ISlopeAiCrackMonitoringService 
{
    @Autowired
    private SlopeAiCrackMonitoringMapper slopeAiCrackMonitoringMapper;

    /**
     * 查询边坡裂缝目标识别监测
     * 
     * @param id 边坡裂缝目标识别监测主键
     * @return 边坡裂缝目标识别监测
     */
    @Override
    public SlopeAiCrackMonitoring selectSlopeAiCrackMonitoringById(Long id)
    {
        return slopeAiCrackMonitoringMapper.selectSlopeAiCrackMonitoringById(id);
    }

    /**
     * 查询边坡裂缝目标识别监测列表
     * 
     * @param slopeAiCrackMonitoring 边坡裂缝目标识别监测
     * @return 边坡裂缝目标识别监测
     */
    @Override
    public List<SlopeAiCrackMonitoring> selectSlopeAiCrackMonitoringList(SlopeAiCrackMonitoring slopeAiCrackMonitoring)
    {
        return slopeAiCrackMonitoringMapper.selectSlopeAiCrackMonitoringList(slopeAiCrackMonitoring);
    }

    /**
     * 新增边坡裂缝目标识别监测
     * 
     * @param slopeAiCrackMonitoring 边坡裂缝目标识别监测
     * @return 结果
     */
    @Override
    public int insertSlopeAiCrackMonitoring(SlopeAiCrackMonitoring slopeAiCrackMonitoring)
    {
        slopeAiCrackMonitoring.setCreateTime(DateUtils.getNowDate());
        return slopeAiCrackMonitoringMapper.insertSlopeAiCrackMonitoring(slopeAiCrackMonitoring);
    }

    /**
     * 修改边坡裂缝目标识别监测
     * 
     * @param slopeAiCrackMonitoring 边坡裂缝目标识别监测
     * @return 结果
     */
    @Override
    public int updateSlopeAiCrackMonitoring(SlopeAiCrackMonitoring slopeAiCrackMonitoring)
    {
        slopeAiCrackMonitoring.setUpdateTime(DateUtils.getNowDate());
        return slopeAiCrackMonitoringMapper.updateSlopeAiCrackMonitoring(slopeAiCrackMonitoring);
    }

    /**
     * 批量删除边坡裂缝目标识别监测
     * 
     * @param ids 需要删除的边坡裂缝目标识别监测主键
     * @return 结果
     */
    @Override
    public int deleteSlopeAiCrackMonitoringByIds(Long[] ids)
    {
        return slopeAiCrackMonitoringMapper.deleteSlopeAiCrackMonitoringByIds(ids);
    }

    /**
     * 删除边坡裂缝目标识别监测信息
     * 
     * @param id 边坡裂缝目标识别监测主键
     * @return 结果
     */
    @Override
    public int deleteSlopeAiCrackMonitoringById(Long id)
    {
        return slopeAiCrackMonitoringMapper.deleteSlopeAiCrackMonitoringById(id);
    }
}
